package com.dailyblue.java.design.责任链模式;

public class App {
    public static void main(String[] args) {
        GM gm = new GM();
        TM tm = new TM();
        PM pm = new PM();
        tm.setNextHandler(pm);
        pm.setNextHandler(gm);
        tm.handler(1);
    }
}
